package com.yunfei.api.v2.service;
import com.yunfei.mapper.crm.AutoShenHeContractMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.Map;

/**
* @Description:系统自动审核合同
* @Author: zhengyunfei
* @Date: 2019/8/9
* @time:10:48
*/
@Service
public class AutoShenHeContractJobService {
    @Autowired
    private AutoShenHeContractMapper autoShenHeContractMapper;

    /**
    * @Description: 系统自动审核合同
     * @param lBenserialNo 系统自动提交合同信息，PKG_YL_HIS_DATA. sp_appcreatecontract这个存储过程返回的id
    * @Author: zhengyunfei
    * @Date: 2019/8/15
    * @time:16:26
    */
    public void run(String lBenserialNo){
        try{
            Map<String,Object> queryMap=new HashMap<>();
            queryMap.put("lBenserialNo",lBenserialNo);
            autoShenHeContractMapper.update1(queryMap);
            autoShenHeContractMapper.update2(queryMap);
        }catch (Exception e){
            e.printStackTrace();
        }
    }

}
